/**
 * @scope enchant.JGZ.URLParser.prototype
 */
enchant.JGZ.URLParser = enchant.Class.create({
  /**
   * URLパーサ
   * @constructs
   * @param {String}  url URL
   */
  initialize : function(url) {
    this.url      = url;
    this.urlParam = url.substring(1);
    this._params  = {};
  },
  /**
   * @description パース処理
   */
  _parse: function() {
    var that    = this;
    var params  = {};
    var pairs   = that.urlParam.split('&');
    var len     = pairs.length;

    for (var i=0;i<len;i++) {
      var kv = pairs[i].split('=');
      params[kv[0]] = kv[1];
    }
    
    this._params = params;
  },
  /**
   * @description パラメータ
   */
  params: {
    get: function() {
      return this._params;
    },
    set: function() {
    }
  }
});
